package com.ghxxzx.daglcustom.business_fk.file.service;

import org.springframework.stereotype.Service;
import org.tmsps.ne4spring.base.BaseService;
import org.tmsps.ne4spring.base.ne.NePage;
import org.tmsps.ne4spring.orm.param.NeParamList;

import com.ghxxzx.daglcustom.business_fk.file.domain.dto.FileQuery;

@Service
public class FileService extends BaseService {

	public NePage selectFile(FileQuery fileQuery) {
		String sql = "select * from fk_file t where t.status=0 and (t.file_name like ?)";
		NeParamList params = NeParamList.makeParams();
		params.addLike(fileQuery.getFileName());
		NePage page = bs.queryForNePage(sql, params, fileQuery.getSort(), fileQuery.getPage());
		return page;
	}

}
